<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="PanierSyllatheque"></jsp:include>
<jsp:include page="header.jsp"></jsp:include>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<c:if test="${not empty cloturer}">
    <span class="inscription"><fmt:message key="okEndCommande" /></span>
</c:if>
<c:if test="${nbElementPanier == 0}">
    <c:if test="${empty cloturer}">
        <p><span class="msgError"><fmt:message key="noDisplay" /></span></p>
    </c:if>
</c:if>
<c:if test="${nbElementPanier != 0}">
<div style="margin: 15px 15px">    
    <table style="margin-top: 25px;">
        <tr>
            <th><fmt:message key="nSyll" /></th>
            <th><fmt:message key="pSyll" /></th>
            <th><fmt:message key="nbPage" /></th>
            <th><fmt:message key="quantity" /></th>
        </tr>
        <c:forEach var="c" items="${hash}" >
            <tr>
                <td>${c.syllabus.libelle}</td>
                <td>${c.prix} €</td>
                <td>${c.syllabus.nbPage}</td>
                <td>${c.quantite}</td>
            </tr>
        </c:forEach>
    </table>
</div>
    
        <div style="height: 100px;">
        <span class="prixPanier">
            <fmt:message key="prixTotal" /> : ${montantTotal} €
        </span>
        </div>
        
<form action="CloturerPanierSyllatheque" method="post">
    <input type="submit" class="btn primary" value="<fmt:message key="btnPay" />" /> - <a href="panier.jsp"><fmt:message key="backToPanier" /></a> !
</form>
</c:if>
    
        

<jsp:include page="footer.jsp"></jsp:include>